'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.bulkInsert('car', [
      {
        license_plate: '冀J5S588',
        driver_name: '张攀',
        driver_phone: '18630710017',
        status: 1,
        create_time: new Date(),
        update_time: new Date()
      },
      {
        license_plate: '冀J5S589',
        driver_name: '李四',
        driver_phone: '18630710018',
        status: 1,
        create_time: new Date(),
        update_time: new Date()
      },
      {
        license_plate: '冀J5S590',
        driver_name: '王五',
        driver_phone: '18630710019',
        status: 1,
        create_time: new Date(),
        update_time: new Date()
      },
      {
        license_plate: '冀J5S591',
        driver_name: '赵六',
        driver_phone: '18630710020',
        status: 1,
        create_time: new Date(),
        update_time: new Date()
      },
      {
        license_plate: '冀J5S592',
        driver_name: '孙七',
        driver_phone: '18630710021',
        status: 1,
        create_time: new Date(),
        update_time: new Date()
      }
    ]);
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('car', null, {});
  }
};
